package com.deer.wms.base.system.web.bill;

import com.deer.wms.base.system.model.bill.BillInSelect;
import com.deer.wms.base.system.model.bill.BillInSelectCriteria;
import com.deer.wms.base.system.model.bill.BillOutDetail;
import com.deer.wms.base.system.model.bill.BillOutDetailCriteria;
import com.deer.wms.base.system.service.bill.BillInSelectService;
import com.deer.wms.common.core.controller.BaseController;
import com.deer.wms.common.core.page.TableDataInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * @author 李帅辰
 * @date 2021/7/30 11:06
 */
@Controller
@RequestMapping("/int/billInSelect")
public class BillInSelectController extends BaseController {
    private String prefix = "int/billInSelect";

    @Autowired
    private BillInSelectService billInSelectService;

    @PostMapping("/findList")
    @ResponseBody
    @Transactional
    public TableDataInfo findList(BillInSelectCriteria billInSelectCriteria) {
        startPage();
        List<BillInSelect> billInSelectList = billInSelectService.findBillInSelectList(billInSelectCriteria);
        return getDataTable(billInSelectList);
    }


}
